{%extends 'base.html'%}

{% block css %}

<style type="text/css">
    .table_detail {

        margin: 20px;

    }

    .link {

        text-align: center;

        margin-top: 40px;
    }
</style>
{% endblock %}

{% block body %}

<div class="center">
    {% if result_info %}
    {% if result_info.party == 'A' %}

    <h1>{{result_info.company_name}}需求页面</h1>
    {% else %}
    <h1>{{result_info.company_name}}资源页面</h1>

    {% endif %}

    {% else %}
    <h1>没有这个ID!!!</h1>
    {% endif %}
</div>

<hr>

<div class="table_detail">

    <table class="table table-striped">



        <tr>
            <th>公司性质</th>
            {% if result_info == 'A'%}
            <td>甲方</td>
            {% else %}
            <td>乙方</td>
            {% endif %}


        </tr>

        <tr>
            <th>公司名称</th>
            <td>{{result_info.company_name}}</td>
        </tr>

        <tr>
            <th>联系人</th>
            <td>{{result_info.linkman}}</td>
        </tr>

        <tr>
            <th>需求</th>
            <td>{{result_info.need}}</td>
        </tr>

        <tr>
            <th>联系电话</th>
            <td>{{result_info.phone}}</td>
        </tr>



    </table>

</div>



{% endblock %}

{% block script %}
<script>
    document.getElementById("demo").innerHTML = "详情";
</script>
{% endblock %}